package com.topsun.framework.common.mybatis.plugins.page;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * @author pipi
 */
public class PageInfo extends Page<Object> {

    public PageInfo() {
    }

    public PageInfo(int current) {
        super();
        if (current < 1) {
            current = 1;
        }
        setCurrent(current);
        setSize(10);
    }

    public PageInfo(int page, int limit) {
        super(page, limit);
    }
}